import logging

def logger():
    log = logging.basicConfig(level=logging.INFO,
                              filemode='a+',
                              filename='log.txt',
                              format='(thread)d %(asctime)s %(message)s %(lineno)d',)
    return log